package com.qf.produce.controller;

import com.qf.produce.service.TestService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * description
 *
 * @author TangLin
 * @date 2020年08月10日 16:19
 */
@RestController
public class Test1 {
    @Resource
    private TestService testService;
    @GetMapping("/test/{string}")
    public String test(@PathVariable(name = "string")String string){
        testService.sendMsg(string);
        return "成功";
    }
    @GetMapping("/test2/{string}")
    public String test2(@PathVariable(name = "string")String string){
        testService.sendMsg2(string);
        return "";
    }
    @GetMapping("/test3/{string}")
    public String test3(@PathVariable(name = "string")String string){
        testService.sendMsg3(string);
        return "成功";
    }
    @GetMapping("/test4/{string}")
    public String test4(@PathVariable(name = "string")String string){
        testService.sendMsg4(string);
        return "成功";
    }
}
